package me.zingon.doc.dao;

import me.zingon.doc.model.Project;
import java.util.List;

import me.zingon.doc.model.User;
import me.zingon.doc.vo.UserVO;
import org.apache.ibatis.annotations.Param;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface ProjectDao {

    int insert(Project project);

    int delete(Project project);

    int deleteByIds(@Param("ids") Integer[] ids);

    int update(Project project);

    Project getById(@Param("id") Integer id);

    List<Project> list(Project project);


    List<Project>  listByUser(User user);

    List<UserVO> listUserByProjectId(@Param("projectId") Integer projectId);
}